<!DOCTYPE html>
<html lang="en">

<body>
	<span>I</span>
	<span>love</span>
	<span>jQuery</span>
	<span>!</span>
	<script
		src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script>
		alert(jQuery('span').text()); // Alerts "I love jQuery!"
	</script>
</body>

</html>